home *** CD-ROM | disk | FTP | other *** search
/ Magnum One / Magnum One (Mid-American Digital) (Disc Manufacturing).iso / d12 / cbibcode.arc / CTIME.C < prev    next >
Encoding:
C/C++ Source or Header  |  1991-08-05  |  309 b   |  11 lines

  1. /* ctime.c              Turbo C Bible Functions, p. 330         */
  2. #include <stdio.h>
  3. #include <time.h>
  4. main()
  5. {
  6.     time_t bintime;
  7.     time(&bintime);
  8.             /* Get time in seconds since 00:00:00 GMT, 1/1/70 */
  9.     printf("Current time: %s\n", ctime(&bintime));
  10.             /* Use ctime to print the date and time */
  11. }